//
//  FaceCompareBaseViewController.m
//  FaceDiscernmentDemo
//
//  Created by mac on 2019/2/22.
//  Copyright © 2019年 mac. All rights reserved.
//

#import "FaceCompareBaseViewController.h"

@interface FaceCompareBaseViewController ()

@end

@implementation FaceCompareBaseViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    
    UIButton* backButton = [UIButton buttonWithType:UIButtonTypeCustom];
    backButton.frame = CGRectMake(10, 55, 100, 20);
    [backButton setTitle:@"返回首页" forState:UIControlStateNormal];
    [backButton setTitleColor:[UIColor grayColor] forState:UIControlStateNormal];
    backButton.titleLabel.font = [UIFont systemFontOfSize:15.0];
    [backButton setImageEdgeInsets:UIEdgeInsetsMake(0, -10, 0, 0)];
    [backButton setContentEdgeInsets:UIEdgeInsetsMake(0, 0, 0, 20)];
    [backButton addTarget:self action:@selector(returnBack:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:backButton];
    // Do any additional setup after loading the view.
}

//返回
- (void)returnBack:(UIButton *)sender{
    [self dismissViewControllerAnimated:YES completion:nil];
}

@end
